﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Data.Entity;
using System.Web;
using MvcApplication2.Models;

namespace MvcApplication2.Controllers
{
    /// <summary>
    /// Uso 2 tipologie 
    /// </summary>
    public class UserProfileViewModel// : UserProfile
    {
        public UserProfileViewModel()
        {
            TesterReviews = new List<ReviewViewModel>();
            DevReviews = new List<ReviewViewModel>();
        }

        public int UserProfileId { get; set; }
        public String DisplayName { get; set; }

        public bool ShowTesterProperty { get; set; }

        public bool ShowDevProperty { get; set; }

        public string FormattedLanguages { get; set; }

        public string OwnDevices { get; set; }

        public double TesterRating { get; set; }

        public int TesterRatingCounter { get; set; }

        public List<ReviewViewModel> TesterReviews { get; set; }

        public double DevRating { get; set; }

        public int DevRatingCounter { get; set; }

        public List<ReviewViewModel> DevReviews { get; set; }

        public bool ShowTesterProfile { get; set; }

        public bool ShowDevProfile { get; set; }
    }

    public class ReviewViewModel
    {
        public double Rating { get; set; }

        public string VotingUsername { get; set; }

        public int ExerciseId { get; set; }

        public string Message { get; set; }

        public DateTime RatingDate { get; set; }
    }




}